






<!doctype html>
<html
  lang="en-us"
  dir="ltr"
  class="scroll-smooth"
  data-default-appearance="light"
  data-auto-appearance="true"
><head><script src="/livereload.js?mindelay=10&amp;v=2&amp;port=1313&amp;path=livereload" data-no-instant defer></script>
  <meta charset="utf-8" />
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
  <meta name="theme-color" content="#FFFFFF" />
  
  <title>Home &middot; Elves Website powered by Hugo</title>
    <meta name="title" content="Home &middot; Elves Website powered by Hugo" />
  
  
  
  
  
  <script
    type="text/javascript"
    src="http://localhost:1313/js/appearance.min.8a082f81b27f3cb2ee528df0b0bdc39787034cf2cc34d4669fbc9977c929023c.js"
    integrity="sha256-iggvgbJ/PLLuUo3wsL3Dl4cDTPLMNNRmn7yZd8kpAjw="
  ></script>
  
  
  
  
  
  
  
  
  <link
    type="text/css"
    rel="stylesheet"
    href="http://localhost:1313/css/main.bundle.min.58acb92913d5f4d9aa3080f4e42bd3e3fc10e101fc9dedf7c6e832f680cb1178.css"
    integrity="sha256-WKy5KRPV9NmqMID05CvT4/wQ4QH8ne33xugy9oDLEXg="
  />
  
  
  
  
  
  
  
  <meta
    name="description"
    content="
      
        
This crate provides fast conversion of floating point primitives to decimal
strings. The implementation is a straightforward Rust port of Milo Yip&rsquo;s C&#43;&#43;
implementation dtoa.h. The original C&#43;&#43; code of each function is included in
comments.







  
  










  
  



See also itoa for printing integer primitives.
Version requirement: rustc 1.36&#43;
site map: http://localhost:1313/sitemap.xml
http://localhost:1313/posts/a9/
toml Example #[dependencies]
dtoa = &#34;1.0&#34;

rust Example #fn main() {
    let mut buffer = dtoa::Buffer::new();
    let printed = buffer.format(2.71828f64);
    assert_eq!(printed, &#34;2.71828&#34;);
}

yaml #app:
    spring:
        port: 8888

java #public class Hi{

    public static void mian(String[] args){
        System.out.println(&#34;good&#34;);
    }
}

Performance (lower is better) #






  
  



      
    "
  />
  
  
  
  
    <link rel="canonical" href="http://localhost:1313/posts/home/" />
  
  
  
    <link rel="apple-touch-icon" sizes="180x180" href="/apple-touch-icon.png" />
    <link rel="icon" type="image/png" sizes="32x32" href="/favicon-32x32.png" />
    <link rel="icon" type="image/png" sizes="16x16" href="/favicon-16x16.png" />
    <link rel="manifest" href="/site.webmanifest" />
  
  
  
  
  
  
  
  
  <meta property="og:url" content="http://localhost:1313/posts/home/">
  <meta property="og:site_name" content="Elves Website powered by Hugo">
  <meta property="og:title" content="Home">
  <meta property="og:description" content="This crate provides fast conversion of floating point primitives to decimal strings. The implementation is a straightforward Rust port of Milo Yip’s C&#43;&#43; implementation dtoa.h. The original C&#43;&#43; code of each function is included in comments.
See also itoa for printing integer primitives.
Version requirement: rustc 1.36&#43;
site map: http://localhost:1313/sitemap.xml
http://localhost:1313/posts/a9/
toml Example #[dependencies] dtoa = &#34;1.0&#34; rust Example #fn main() { let mut buffer = dtoa::Buffer::new(); let printed = buffer.format(2.71828f64); assert_eq!(printed, &#34;2.71828&#34;); } yaml #app: spring: port: 8888 java #public class Hi{ public static void mian(String[] args){ System.out.println(&#34;good&#34;); } } Performance (lower is better) #">
  <meta property="og:locale" content="en_us">
  <meta property="og:type" content="article">
    <meta property="article:section" content="posts">
    <meta property="article:published_time" content="2025-06-25T16:46:14+08:00">
    <meta property="article:modified_time" content="2025-06-25T16:46:14+08:00">

  
  <meta name="twitter:card" content="summary">
  <meta name="twitter:title" content="Home">
  <meta name="twitter:description" content="This crate provides fast conversion of floating point primitives to decimal strings. The implementation is a straightforward Rust port of Milo Yip’s C&#43;&#43; implementation dtoa.h. The original C&#43;&#43; code of each function is included in comments.
See also itoa for printing integer primitives.
Version requirement: rustc 1.36&#43;
site map: http://localhost:1313/sitemap.xml
http://localhost:1313/posts/a9/
toml Example #[dependencies] dtoa = &#34;1.0&#34; rust Example #fn main() { let mut buffer = dtoa::Buffer::new(); let printed = buffer.format(2.71828f64); assert_eq!(printed, &#34;2.71828&#34;); } yaml #app: spring: port: 8888 java #public class Hi{ public static void mian(String[] args){ System.out.println(&#34;good&#34;); } } Performance (lower is better) #">

  
  <script type="application/ld+json">
  {
    "@context": "https://schema.org",
    "@type": "Article",
    "articleSection": "Posts",
    "name": "Home",
    "headline": "Home",
    
    "abstract": "\u003cp\u003e\u003ca href=\u0022img\/1.png\u0022\u003e\u003c!-- raw HTML omitted --\u003e\u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003eThis crate provides fast conversion of floating point primitives to decimal\nstrings. The implementation is a straightforward Rust port of \u003ca href=\u0022https:\/\/github.com\/miloyip\u0022 target=\u0022_blank\u0022 rel=\u0022noreferrer\u0022\u003eMilo Yip\u003c\/a\u003e\u0026rsquo;s C\u002b\u002b\nimplementation \u003ca href=\u0022https:\/\/github.com\/miloyip\/rapidjson\/blob\/master\/include\/rapidjson\/internal\/dtoa.h\u0022 target=\u0022_blank\u0022 rel=\u0022noreferrer\u0022\u003edtoa.h\u003c\/a\u003e. The original C\u002b\u002b code of each function is included in\ncomments.\u003c\/p\u003e\n\u003cp\u003e\n\n\n\n\n\n\n  \n  \n\u003cfigure\u003e\u003cimg src=\u0022\/img\/2.png\u0022 alt=\u0022222\u0022 class=\u0022mx-auto my-0 rounded-md\u0022 \/\u003e\n\u003c\/figure\u003e\n\u003c\/p\u003e\n\u003cp\u003e\n\n\n\n\n\n\n  \n  \n\u003cfigure\u003e\u003cimg src=\u0022\/img\/1.png\u0022 alt=\u0022111\u0022 class=\u0022mx-auto my-0 rounded-md\u0022 \/\u003e\n\u003c\/figure\u003e\n\u003c\/p\u003e\n\u003cp\u003eSee also \u003ca href=\u0022https:\/\/github.com\/dtolnay\/itoa\u0022 target=\u0022_blank\u0022 rel=\u0022noreferrer\u0022\u003e\u003ccode\u003eitoa\u003c\/code\u003e\u003c\/a\u003e for printing integer primitives.\u003c\/p\u003e\n\u003cp\u003e\u003cem\u003eVersion requirement: rustc 1.36\u002b\u003c\/em\u003e\u003c\/p\u003e\n\u003cp\u003e\u003ca href=\u0022http:\/\/localhost:1313\/sitemap.xml\u0022 target=\u0022_blank\u0022 rel=\u0022noreferrer\u0022\u003esite map: http:\/\/localhost:1313\/sitemap.xml\u003c\/a\u003e\u003c\/p\u003e\n\u003cp\u003e\u003ca href=\u0022http:\/\/localhost:1313\/posts\/a9\/\u0022 target=\u0022_blank\u0022 rel=\u0022noreferrer\u0022\u003ehttp:\/\/localhost:1313\/posts\/a9\/\u003c\/a\u003e\u003c\/p\u003e\n\u003ch2 id=\u0022toml-example\u0022 class=\u0022relative group\u0022\u003etoml Example \u003cspan class=\u0022absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100\u0022\u003e\u003ca class=\u0022group-hover:text-primary-300 dark:group-hover:text-neutral-700\u0022 style=\u0022text-decoration-line: none !important;\u0022 href=\u0022#toml-example\u0022 aria-label=\u0022Anchor\u0022\u003e#\u003c\/a\u003e\u003c\/span\u003e\u003c\/h2\u003e\u003cdiv class=\u0022highlight\u0022\u003e\u003cpre tabindex=\u00220\u0022 style=\u0022color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\u0022\u003e\u003ccode class=\u0022language-toml\u0022 data-lang=\u0022toml\u0022\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e[\u003cspan style=\u0022color:#a6e22e\u0022\u003edependencies\u003c\/span\u003e]\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e\u003cspan style=\u0022color:#a6e22e\u0022\u003edtoa\u003c\/span\u003e = \u003cspan style=\u0022color:#e6db74\u0022\u003e\u0026#34;1.0\u0026#34;\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003c\/code\u003e\u003c\/pre\u003e\u003c\/div\u003e\u003c!-- raw HTML omitted --\u003e\n\u003ch2 id=\u0022rust-example\u0022 class=\u0022relative group\u0022\u003erust Example \u003cspan class=\u0022absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100\u0022\u003e\u003ca class=\u0022group-hover:text-primary-300 dark:group-hover:text-neutral-700\u0022 style=\u0022text-decoration-line: none !important;\u0022 href=\u0022#rust-example\u0022 aria-label=\u0022Anchor\u0022\u003e#\u003c\/a\u003e\u003c\/span\u003e\u003c\/h2\u003e\u003cdiv class=\u0022highlight\u0022\u003e\u003cpre tabindex=\u00220\u0022 style=\u0022color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\u0022\u003e\u003ccode class=\u0022language-rust\u0022 data-lang=\u0022rust\u0022\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e\u003cspan style=\u0022color:#66d9ef\u0022\u003efn\u003c\/span\u003e \u003cspan style=\u0022color:#a6e22e\u0022\u003emain\u003c\/span\u003e() {\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e    \u003cspan style=\u0022color:#66d9ef\u0022\u003elet\u003c\/span\u003e \u003cspan style=\u0022color:#66d9ef\u0022\u003emut\u003c\/span\u003e buffer \u003cspan style=\u0022color:#f92672\u0022\u003e=\u003c\/span\u003e dtoa::Buffer::new();\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e    \u003cspan style=\u0022color:#66d9ef\u0022\u003elet\u003c\/span\u003e printed \u003cspan style=\u0022color:#f92672\u0022\u003e=\u003c\/span\u003e buffer.format(\u003cspan style=\u0022color:#ae81ff\u0022\u003e2.71828\u003c\/span\u003e\u003cspan style=\u0022color:#66d9ef\u0022\u003ef64\u003c\/span\u003e);\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e    \u003cspan style=\u0022color:#a6e22e\u0022\u003eassert_eq!\u003c\/span\u003e(printed, \u003cspan style=\u0022color:#e6db74\u0022\u003e\u0026#34;2.71828\u0026#34;\u003c\/span\u003e);\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e}\n\u003c\/span\u003e\u003c\/span\u003e\u003c\/code\u003e\u003c\/pre\u003e\u003c\/div\u003e\u003c!-- raw HTML omitted --\u003e\n\u003ch2 id=\u0022yaml\u0022 class=\u0022relative group\u0022\u003eyaml \u003cspan class=\u0022absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100\u0022\u003e\u003ca class=\u0022group-hover:text-primary-300 dark:group-hover:text-neutral-700\u0022 style=\u0022text-decoration-line: none !important;\u0022 href=\u0022#yaml\u0022 aria-label=\u0022Anchor\u0022\u003e#\u003c\/a\u003e\u003c\/span\u003e\u003c\/h2\u003e\u003cdiv class=\u0022highlight\u0022\u003e\u003cpre tabindex=\u00220\u0022 style=\u0022color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\u0022\u003e\u003ccode class=\u0022language-yaml\u0022 data-lang=\u0022yaml\u0022\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e\u003cspan style=\u0022color:#f92672\u0022\u003eapp\u003c\/span\u003e:\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e    \u003cspan style=\u0022color:#f92672\u0022\u003espring\u003c\/span\u003e:\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e        \u003cspan style=\u0022color:#f92672\u0022\u003eport\u003c\/span\u003e: \u003cspan style=\u0022color:#ae81ff\u0022\u003e8888\u003c\/span\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003c\/code\u003e\u003c\/pre\u003e\u003c\/div\u003e\u003c!-- raw HTML omitted --\u003e\n\u003ch2 id=\u0022java\u0022 class=\u0022relative group\u0022\u003ejava \u003cspan class=\u0022absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100\u0022\u003e\u003ca class=\u0022group-hover:text-primary-300 dark:group-hover:text-neutral-700\u0022 style=\u0022text-decoration-line: none !important;\u0022 href=\u0022#java\u0022 aria-label=\u0022Anchor\u0022\u003e#\u003c\/a\u003e\u003c\/span\u003e\u003c\/h2\u003e\u003cdiv class=\u0022highlight\u0022\u003e\u003cpre tabindex=\u00220\u0022 style=\u0022color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;\u0022\u003e\u003ccode class=\u0022language-java\u0022 data-lang=\u0022java\u0022\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e\u003cspan style=\u0022color:#66d9ef\u0022\u003epublic\u003c\/span\u003e \u003cspan style=\u0022color:#66d9ef\u0022\u003eclass\u003c\/span\u003e \u003cspan style=\u0022color:#a6e22e\u0022\u003eHi\u003c\/span\u003e{\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e    \u003cspan style=\u0022color:#66d9ef\u0022\u003epublic\u003c\/span\u003e \u003cspan style=\u0022color:#66d9ef\u0022\u003estatic\u003c\/span\u003e \u003cspan style=\u0022color:#66d9ef\u0022\u003evoid\u003c\/span\u003e \u003cspan style=\u0022color:#a6e22e\u0022\u003emian\u003c\/span\u003e(String\u003cspan style=\u0022color:#f92672\u0022\u003e[]\u003c\/span\u003e args){\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e        System.\u003cspan style=\u0022color:#a6e22e\u0022\u003eout\u003c\/span\u003e.\u003cspan style=\u0022color:#a6e22e\u0022\u003eprintln\u003c\/span\u003e(\u003cspan style=\u0022color:#e6db74\u0022\u003e\u0026#34;good\u0026#34;\u003c\/span\u003e);\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e    }\n\u003c\/span\u003e\u003c\/span\u003e\u003cspan style=\u0022display:flex;\u0022\u003e\u003cspan\u003e}\n\u003c\/span\u003e\u003c\/span\u003e\u003c\/code\u003e\u003c\/pre\u003e\u003c\/div\u003e\u003c!-- raw HTML omitted --\u003e\n\u003ch2 id=\u0022performance-lower-is-better\u0022 class=\u0022relative group\u0022\u003ePerformance (lower is better) \u003cspan class=\u0022absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100\u0022\u003e\u003ca class=\u0022group-hover:text-primary-300 dark:group-hover:text-neutral-700\u0022 style=\u0022text-decoration-line: none !important;\u0022 href=\u0022#performance-lower-is-better\u0022 aria-label=\u0022Anchor\u0022\u003e#\u003c\/a\u003e\u003c\/span\u003e\u003c\/h2\u003e\u003cp\u003e\n\n\n\n\n\n\n  \n  \n\u003cfigure\u003e\u003cimg src=\u0022https:\/\/raw.githubusercontent.com\/dtolnay\/dtoa\/master\/performance.png\u0022 alt=\u0022performance\u0022 class=\u0022mx-auto my-0 rounded-md\u0022 \/\u003e\n\u003c\/figure\u003e\n\u003c\/p\u003e",
    "inLanguage": "en-us",
    "url" : "http:\/\/localhost:1313\/posts\/home\/",
    "author" : {
      "@type": "Person",
      "name": ""
    },
    "copyrightYear": "2025",
    "dateCreated": "2025-06-25T16:46:14\u002b08:00",
    "datePublished": "2025-06-25T16:46:14\u002b08:00",
    
    "dateModified": "2025-06-25T16:46:14\u002b08:00",
    
    
    
    "mainEntityOfPage": "true",
    "wordCount": "96"
  }
  </script>
    
    <script type="application/ld+json">
    {
   "@context": "https://schema.org",
   "@type": "BreadcrumbList",
   "itemListElement": [
     {
       "@type": "ListItem",
       "item": "http://localhost:1313/",
       "name": "首页md",
       "position": 1
     },
     {
       "@type": "ListItem",
       "item": "http://localhost:1313/posts/",
       "name": "Posts",
       "position": 2
     },
     {
       "@type": "ListItem",
       "name": "Home",
       "position": 3
     }
   ]
 }
  </script>

  
  
  
  
  







  
  

  
  
</head>
<body
    class="m-auto flex h-screen max-w-7xl flex-col bg-neutral px-6 text-lg leading-7 text-neutral-900 dark:bg-neutral-800 dark:text-neutral sm:px-14 md:px-24 lg:px-32"
  >
    <div id="the-top" class="absolute flex self-center">
      <a
        class="-translate-y-8 rounded-b-lg bg-primary-200 px-3 py-1 text-sm focus:translate-y-0 dark:bg-neutral-600"
        href="#main-content"
        ><span class="pe-2 font-bold text-primary-600 dark:text-primary-400">&darr;</span
        >Skip to main content</a
      >
    </div>
    
    
      <header class="py-6 font-semibold text-neutral-900 dark:text-neutral sm:py-10 print:hidden">
  <nav class="flex items-start justify-between sm:items-center">
    
    <div class="flex flex-row items-center">
      
  <a
    class="decoration-primary-500 hover:underline hover:decoration-2 hover:underline-offset-2"
    rel="me"
    href="/"
    >Elves Website powered by Hugo</a
  >

    </div>
    
    
  </nav>
</header>

    
    <div class="relative flex grow flex-col">
      <main id="main-content" class="grow">
        
  <article>
    <header class="max-w-prose">
      
      <h1 class="mb-8 mt-0 text-4xl font-extrabold text-neutral-900 dark:text-neutral">
        Home
      </h1>
      
        <div class="mb-10 text-base text-neutral-500 dark:text-neutral-400 print:hidden">
          





  
  



  

  
  
    
  

  

  

  
    
  

  


  <div class="flex flex-row flex-wrap items-center">
    
    
      <time datetime="2025-06-25 16:46:14 &#43;0800 CST">June 25, 2025</time><span class="px-2 text-primary-500">&middot;</span><span title="Reading time">1 min</span>
    

    
    
      <span class="ps-2"><span class="flex">
  <span
    class="ms-1 rounded-md border border-primary-400 px-1 py-[1px] text-xs font-normal text-primary-700 dark:border-primary-600 dark:text-primary-400"
  >
    Draft
  </span>
</span>
</span>
    
  </div>

  
  


        </div>
      
      
    </header>
    <section class="prose mt-0 flex max-w-full flex-col dark:prose-invert lg:flex-row">
      
      <div class="min-h-0 min-w-0 max-w-prose grow">
        <p><a href="img/1.png"><!-- raw HTML omitted --></a></p>
<p>This crate provides fast conversion of floating point primitives to decimal
strings. The implementation is a straightforward Rust port of <a href="https://github.com/miloyip" target="_blank" rel="noreferrer">Milo Yip</a>&rsquo;s C++
implementation <a href="https://github.com/miloyip/rapidjson/blob/master/include/rapidjson/internal/dtoa.h" target="_blank" rel="noreferrer">dtoa.h</a>. The original C++ code of each function is included in
comments.</p>
<p>






  
  
<figure><img src="/img/2.png" alt="222" class="mx-auto my-0 rounded-md" />
</figure>
</p>
<p>






  
  
<figure><img src="/img/1.png" alt="111" class="mx-auto my-0 rounded-md" />
</figure>
</p>
<p>See also <a href="https://github.com/dtolnay/itoa" target="_blank" rel="noreferrer"><code>itoa</code></a> for printing integer primitives.</p>
<p><em>Version requirement: rustc 1.36+</em></p>
<p><a href="http://localhost:1313/sitemap.xml" target="_blank" rel="noreferrer">site map: http://localhost:1313/sitemap.xml</a></p>
<p><a href="http://localhost:1313/posts/a9/" target="_blank" rel="noreferrer">http://localhost:1313/posts/a9/</a></p>
<h2 id="toml-example" class="relative group">toml Example <span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#toml-example" aria-label="Anchor">#</a></span></h2><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-toml" data-lang="toml"><span style="display:flex;"><span>[<span style="color:#a6e22e">dependencies</span>]
</span></span><span style="display:flex;"><span><span style="color:#a6e22e">dtoa</span> = <span style="color:#e6db74">&#34;1.0&#34;</span>
</span></span></code></pre></div><!-- raw HTML omitted -->
<h2 id="rust-example" class="relative group">rust Example <span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#rust-example" aria-label="Anchor">#</a></span></h2><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-rust" data-lang="rust"><span style="display:flex;"><span><span style="color:#66d9ef">fn</span> <span style="color:#a6e22e">main</span>() {
</span></span><span style="display:flex;"><span>    <span style="color:#66d9ef">let</span> <span style="color:#66d9ef">mut</span> buffer <span style="color:#f92672">=</span> dtoa::Buffer::new();
</span></span><span style="display:flex;"><span>    <span style="color:#66d9ef">let</span> printed <span style="color:#f92672">=</span> buffer.format(<span style="color:#ae81ff">2.71828</span><span style="color:#66d9ef">f64</span>);
</span></span><span style="display:flex;"><span>    <span style="color:#a6e22e">assert_eq!</span>(printed, <span style="color:#e6db74">&#34;2.71828&#34;</span>);
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div><!-- raw HTML omitted -->
<h2 id="yaml" class="relative group">yaml <span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#yaml" aria-label="Anchor">#</a></span></h2><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-yaml" data-lang="yaml"><span style="display:flex;"><span><span style="color:#f92672">app</span>:
</span></span><span style="display:flex;"><span>    <span style="color:#f92672">spring</span>:
</span></span><span style="display:flex;"><span>        <span style="color:#f92672">port</span>: <span style="color:#ae81ff">8888</span>
</span></span></code></pre></div><!-- raw HTML omitted -->
<h2 id="java" class="relative group">java <span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#java" aria-label="Anchor">#</a></span></h2><div class="highlight"><pre tabindex="0" style="color:#f8f8f2;background-color:#272822;-moz-tab-size:4;-o-tab-size:4;tab-size:4;"><code class="language-java" data-lang="java"><span style="display:flex;"><span><span style="color:#66d9ef">public</span> <span style="color:#66d9ef">class</span> <span style="color:#a6e22e">Hi</span>{
</span></span><span style="display:flex;"><span>
</span></span><span style="display:flex;"><span>    <span style="color:#66d9ef">public</span> <span style="color:#66d9ef">static</span> <span style="color:#66d9ef">void</span> <span style="color:#a6e22e">mian</span>(String<span style="color:#f92672">[]</span> args){
</span></span><span style="display:flex;"><span>        System.<span style="color:#a6e22e">out</span>.<span style="color:#a6e22e">println</span>(<span style="color:#e6db74">&#34;good&#34;</span>);
</span></span><span style="display:flex;"><span>    }
</span></span><span style="display:flex;"><span>}
</span></span></code></pre></div><!-- raw HTML omitted -->
<h2 id="performance-lower-is-better" class="relative group">Performance (lower is better) <span class="absolute top-0 w-6 transition-opacity opacity-0 -start-6 not-prose group-hover:opacity-100"><a class="group-hover:text-primary-300 dark:group-hover:text-neutral-700" style="text-decoration-line: none !important;" href="#performance-lower-is-better" aria-label="Anchor">#</a></span></h2><p>






  
  
<figure><img src="https://raw.githubusercontent.com/dtolnay/dtoa/master/performance.png" alt="performance" class="mx-auto my-0 rounded-md" />
</figure>
</p>
<!-- raw HTML omitted -->
<p>






  
  
<figure><img src="/img/3.png" alt="girl" class="mx-auto my-0 rounded-md" />
</figure>
</p>

      </div>
    </section>
    <footer class="max-w-prose pt-8 print:hidden">
      
  <div class="flex">
    
    
    
    <div class="place-self-center">
      
      
      <div class="text-2xl sm:text-lg">
</div>
    </div>
  </div>


      

      
  
    
    
    
    <div class="pt-8">
      <hr class="border-dotted border-neutral-300 dark:border-neutral-600" />
      <div class="flex justify-between pt-3">
        <span>
          
            <a class="group flex" href="http://localhost:1313/posts/a9/">
              <span
                class="me-2 text-neutral-700 transition-transform group-hover:-translate-x-[2px] group-hover:text-primary-600 dark:text-neutral dark:group-hover:text-primary-400"
                ><span class="ltr:inline rtl:hidden">&larr;</span
                ><span class="ltr:hidden rtl:inline">&rarr;</span></span
              >
              <span class="flex flex-col">
                <span
                  class="mt-[0.1rem] leading-6 group-hover:underline group-hover:decoration-primary-500"
                  >A9</span
                >
                <span class="mt-[0.1rem] text-xs text-neutral-500 dark:text-neutral-400">
                  
                    <time datetime="2025-06-25 16:35:15 &#43;0800 CST">June 25, 2025</time>
                  
                </span>
              </span>
            </a>
          
        </span>
        <span>
          
        </span>
      </div>
    </div>
  


      
    </footer>
  </article>

      </main>
      
        <div
          class="pointer-events-none absolute bottom-0 end-0 top-[100vh] w-12"
          id="to-top"
          hidden="true"
        >
          <a
            href="#the-top"
            class="pointer-events-auto sticky top-[calc(100vh-5.5rem)] flex h-12 w-12 items-center justify-center rounded-full bg-neutral/50 text-xl text-neutral-700 backdrop-blur hover:text-primary-600 dark:bg-neutral-800/50 dark:text-neutral dark:hover:text-primary-400"
            aria-label="Scroll to top"
            title="Scroll to top"
          >
            &uarr;
          </a>
        </div>
      <footer class="py-10 print:hidden">
  
  
  <div class="flex items-center justify-between">
    <div>
      
      
        <p class="text-sm text-neutral-500 dark:text-neutral-400">
            &copy;
            2025
            
        </p>
      
      
      
        <p class="text-xs text-neutral-500 dark:text-neutral-400">
          
          
          Powered by <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500"
            href="https://gohugo.io/" target="_blank" rel="noopener noreferrer">Hugo</a> &amp; <a class="hover:underline hover:decoration-primary-400 hover:text-primary-500" href="https://github.com/jpanther/congo" target="_blank" rel="noopener noreferrer">Congo</a>
        </p>
      
    </div>
    <div class="flex flex-row items-center">
      
      
      
      
    </div>
  </div>
  
  
</footer>

    </div>
  </body>
</html>
